package com.ehome.poct.core.api.feign;

import com.ehome.core.page.PageInfo;
import com.ehome.poct.core.api.dto.order.TestOrderCheckRecordDTO;
import com.ehome.poct.core.api.dto.order.TestOrderCheckRecordQry;
import com.ehome.poct.core.api.vo.order.TestOrderCheckRecordVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author muqiu
 */
@FeignClient(value = "${service.poct-core:}${service.suffix.poct-core:}", path = "/orderCheckRecord", contextId = "orderCheckRecord")
public interface OrderCheckRocordClient {
    /**
     * 获取待检测列表
     * @return
     */
    @GetMapping("/page")
    PageInfo<TestOrderCheckRecordVO> list(@SpringQueryMap TestOrderCheckRecordQry testOrderCheckRecordQry);

    /**
     * 获取订单检测状态
     * @param testOrderCheckRecordDTO
     * @return
     */
    @GetMapping("/one")
    TestOrderCheckRecordVO getOne(@SpringQueryMap TestOrderCheckRecordDTO testOrderCheckRecordDTO);
}
